package cn.mymall.entity.mall;

import cn.mymall.util.DateUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

//发货商
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_shipper")
public class Shipper extends Model {
	private static final long serialVersionUID = 5905086231202723510L;
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	private String name;
	private String mobile;
	private String telephone;
	private String address;
	private Timestamp addTime;
	private Timestamp updateTime;
	public Shipper(){
		this.addTime = DateUtil.getCurFullTimestamp();
		this.updateTime=this.addTime;
	}

}
